import request from '@/static/js/utils/request'
import { envConfig } from '@/static/js/env/env'
const { baseUrl } = envConfig

// 匠人入驻
export function joinCraftsman(data) {
    return request.post({
        url: `${baseUrl}/api/front/craftsman/apply`,
        data
    })
}

// 分页获取时间可用匠人列表
export function getTimeCraftsman(data) {
    return request.get({
        url: `${baseUrl}/api/front/product/craftsman/list`,
        data
    })
}
